POV-Ray : Newsgroups : povray.general : troubles with functions in 3.5 ... : Re: troubles with functions in 3.5 ... Server Time
7 Aug 2024 09:21:55 EDT (-0400)
  Re: troubles with functions in 3.5 ...  
From: Christoph Hormann
Date: 12 Oct 2001 13:01:31
Message: <3BC721EB.317F3B6A@gmx.de>
jan Walzer wrote:
> 
> the following
> 
> ----------------------------------------
> #declare SphereInside=function(x,y,z,p,r) {
>         select( vlength(<x,y,z>-p)-r),
> [...]
> 
> how do have to correct this ?

Why do you think vlength() is allowed in user defined functions?


> BTW: I also tried it with (sqrt((x-p.x)^2+(y-p.y)^2+(z-p.z)^2+))
> 

This should work if you use floats instead of p.x etc.

Christoph

-- 
Christoph Hormann <chr### [at] gmxde>
IsoWood include, radiosity tutorial, TransSkin and other 
things on: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.